home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / windows 95 utilities / web authoring tools / gate keeper / gatekeep.txt < prev    next >
Encoding:
Text File  |  1997-02-11  |  1.9 KB  |  72 lines

  1. <HTML>
  2. <HEAD>
  3. <TITLE>Gate Keeper</TITLE>
  4.  
  5. <SCRIPT LANGUAGE="JavaScript">
  6. <!--- Hide from tired old browsers that should be put to pasture.
  7.  
  8. ////////////////////////////////////////////////////////////////////
  9. ///  Get your very own Gate Keeper from Professional Web Design  ///
  10. ///  http://junior.apk.net/~jbarta/weblinks/gate_keeper/         ///
  11. ////////////////////////////////////////////////////////////////////
  12.  
  13. function goForit() {
  14.   var location;
  15.   var password;
  16.   password=this.document.testform.inputbox.value
  17.   location=password + ".html"
  18.   fetch(location)
  19.   theKeeper=window.close()
  20. }
  21.  
  22. function fetch(location) {
  23.   var root;
  24.   if (opener.closed) {
  25.     root=window.open('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
  26.     root.location.href = location;
  27.   } else {
  28.     opener.location.href = location;
  29.   }
  30. }
  31.  
  32. // End hiding --->
  33. </SCRIPT>
  34.  
  35. </HEAD>
  36.  
  37. <BODY BACKGROUND="keeper.gif">
  38.  
  39. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  40. <TR>
  41. <TD ROWSPAN=2 WIDTH=50%>
  42.   
  43.  
  44. <TD WIDTH=50% ALIGN=CENTER VALIGN=MIDDLE>
  45. <FONT FACE="ARIAL" SIZE=2><B>Hold on there buddy. You'll need a password to get in here. We're tryin' to keep out the riff-raff.</B></FONT><BR>
  46.  
  47.  
  48. <TR>
  49. <TD WIDTH=50% ALIGN=CENTER VALIGN=BOTTOM>
  50. <CENTER>
  51. <FORM NAME="testform">
  52. <INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
  53. <INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">
  54.  
  55.  
  56.  
  57. <!--- You can remove the following link if you want.
  58.       I just added it to satisfy my own selfish interests.
  59.       Just remove the following line and this comment. --->
  60. <P><FONT SIZE=1 FACE="COMIC SANS MS"><A HREF="http://junior.apk.net/~jbarta/weblinks/gate_keeper/" TARGET="_blank"><B>Gate Keeper</B></A></FONT>
  61.  
  62.  
  63.  
  64. </FORM>
  65. </CENTER>
  66.  
  67.  
  68. </TABLE>
  69.  
  70. </BODY>
  71.  
  72. </HTML>